﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KMrpt32.aspx.cs" Inherits="KMrpt32" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>各品类销售库存码比分析(大区)</title>
    <script src="js/extTools.js" type="text/javascript"></script>
    <script src="./js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="./js/jquery/jquery.iDialog.js" dialog-theme="default" type="text/javascript"></script>
    <script src="./js/config.js" type="text/javascript"></script>
    <style>
        .x-grid-row-over .x-grid-cell-inner
        {
            font-weight: bold;
        }
        .x-column-header-inner
        {
            background-color: #157fcc;
            color: White;
            font-weight: bold;
            font-size: 14px;
        }
        .child-row .x-grid-cell
        {
            color: red;
        }
        .cw-row .x-grid-cell
        {
            background-color: #ffffff;
            color: Blue;
        }
        .adult-row .x-grid-cell
        {
            background-color: #ffffff;
            color: green;
        }
    </style>
    <script>
        var areachange = function (obj) {
            //alert(obj.value);
            CompanyX.binStock(obj.value);
        }
        var saveData = function () {
            App.Hidden1.setValue(Ext.encode(App.GridPanel1.getRowsValues({ selectedOnly: false, currentPageOnly: true })));
        };
        var getRowClass = function (record, rowIndex, rowParams, store) {
            var css = "adult-row"
            if (record.data.值 == '累销%' || record.data.值 == '店存%'
            || record.data.值 == '总存%' || record.data.值 == '入库量%') {
                css = 'cw-row'
            }
            if (record.data.值 == '订销差') {
                css = 'child-row'
            }
            return css;
            //return record.data.财务确认 == '已确认' ? 'child-row' : 'adult-row';
        };
        $(function () {
            $('#btn_findshop').click(function () {
                getshop($("#txt_shopname").val());
            });
            $('#chkclear').click(function () {
                $('#shop-list input[type="checkbox"]').each(function () {
                    if ($(this).attr('checked') == true) {
                        $(this).click();
                    }
                });
                $('#select-shop').text('');
                $('#txt_shop').val('');
            });
        });
        function showshop() {
            //alert(App.selectshop.getValue());
            if (App.selectshop.getValue() == "") {
                getshop("");
            }
            $.dialog({
                lock: true,
                fixed: true,
                title: '选择店铺',
                width: 800,
                btn: {
                    ok: {
                        val: '确定',
                        type: 'blue',
                        click: function (btn) {
                            var shop = $("#select_shop").text();
                            App.selectshop.setValue($("#txt_shop").val());
                        }
                    },
                    cancle: {
                        val: '取消',
                        type: 'red'
                    }
                },
                content: document.getElementById("my-shop")
            });

        }
        function getshop(val) {
            $.post(url_path + "/AjaxContrls/UnitControler.aspx",
                { aciton: 'lodshoplist', shopname: val },
                    function (data) {
                        var html = "";
                        var msg = $.trim(data);
                        if (msg == "NO_DATA") {
                            html = "<tr><td>没有数据！</td></tr>"
                        } else {
                            var orderObj = JSON.parse(msg);
                            for (var i = 0; i < orderObj.length; i++) {
                                html += '<div style ="float:left; width:240px;"><input type="checkbox" name="' + orderObj[i].shopname + '" value="' + orderObj[i].shopid + '">' +
                                '<label>' + orderObj[i].shopname + '</label></div>';
                            }
                        }
                        $("#shop-list").html(html);
                        //$('#select_shop').text("");
                        $('#shop-list input[type="checkbox"]').each(function () {
                            $(this).click(function () {
                                var val = $('#select_shop').text();
                                var val2 = $('#txt_shop').val();
                                var chkVal = $(this).val();
                                var chkName = $(this).attr('name');

                                if ($(this).attr('checked') == "checked") {
                                    $('#select_shop').text(val + chkVal + ',');
                                    $('#txt_shop').val(val2 + chkName + ',');
                                }
                                else {
                                    var result = val.replace(new RegExp(chkVal + ',', 'gm'), '');
                                    $('#select_shop').text(result);
                                    //$('#txt_shop').val(val2.replace(chkName + ',', ''));
                                    $('#txt_shop').val(val2.replace(new RegExp(chkName + ',', 'gm'), ''));
                                }
                            })
                        });
                    });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Neptune" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:Hidden ID="FormatType" runat="server" />
                <ext:Hidden ID="Hidden1" runat="server" />
                <ext:TabPanel ID="TabPanel1" runat="server" Flex="1">
                    <TopBar>
                        <ext:Toolbar ID="Toolbar1" runat="server" Layout="Container">
                            <Items>
                                <ext:Toolbar ID="Toolbar3" runat="server" Layout="ColumnLayout">
                                    <Items>
                                        <ext:DateField runat="server" ID="txtbdate" FieldLabel="日期" LabelWidth="80" />
                                        <ext:Label ID="Label1" runat="server" Text="-">
                                        </ext:Label>
                                        <ext:DateField runat="server" ID="txtedate" />
                                        <ext:ComboBox runat="server" ID="txtbigarea" FieldLabel="大区" DisplayField="bigareaname"
                                            ValueField="bigareaname" QueryMode="Local" TypeAhead="true" Width="200" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="Store8">
                                                    <Model>
                                                        <ext:Model ID="Model9" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="bigareaname" />
                                                                <ext:ModelField Name="bigareaname" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:ComboBox>
                                        <ext:ComboBox runat="server" ID="arealist" FieldLabel="省份" DisplayField="AreaName"
                                            ValueField="AreaName" QueryMode="Local" TypeAhead="true" Width="250" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="Store2">
                                                    <Model>
                                                        <ext:Model ID="Model3" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="AreaName" />
                                                                <ext:ModelField Name="AreaName" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:ComboBox>
                                        <ext:MultiCombo runat="server" ID="txtseries" FieldLabel="系列" DisplayField="seriesname"
                                            ValueField="seriesname" Width="200" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="st_stock">
                                                    <Model>
                                                        <ext:Model ID="Model6" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="seriesname" />
                                                                <ext:ModelField Name="seriesname" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:MultiCombo>
                                        <ext:TextField runat="server" ID="txtshortname" FieldLabel="货品简称" LabelWidth="80" />
                                        <ext:MultiCombo runat="server" ID="txtseason" FieldLabel="季节" DisplayField="seasonname"
                                            ValueField="seasonname" Width="200" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="Store4">
                                                    <Model>
                                                        <ext:Model ID="Model5" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="seasonname" />
                                                                <ext:ModelField Name="seasonname" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:MultiCombo>
                                        <ext:MultiCombo runat="server" ID="txtyear" FieldLabel="年份" DisplayField="yearno"
                                            ValueField="yearno" Width="200" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="Store3">
                                                    <Model>
                                                        <ext:Model ID="Model8" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="yearno" />
                                                                <ext:ModelField Name="yearno" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:MultiCombo>
                                        <ext:MultiCombo runat="server" ID="txtmatkind" FieldLabel="类别" DisplayField="kindname"
                                            ValueField="kindname" Width="200" LabelWidth="60">
                                            <Store>
                                                <ext:Store runat="server" ID="Store5">
                                                    <Model>
                                                        <ext:Model ID="Model7" runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="kindname" />
                                                                <ext:ModelField Name="kindname" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <Items>
                                                <ext:ListItem>
                                                </ext:ListItem>
                                            </Items>
                                        </ext:MultiCombo>
                                        <ext:TextField runat="server" ID="selectshop" FieldLabel="店铺" LabelWidth="60" EmptyText="选择店铺">
                                            <Listeners>
                                                <Focus Handler="showshop();">
                                                </Focus>
                                            </Listeners>
                                        </ext:TextField>
                                        <ext:TextField runat="server" ID="txtitemname" FieldLabel="项目" LabelWidth="80" />
                                    </Items>
                                </ext:Toolbar>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Items>
                        <ext:GridPanel ID="GridPanel1" runat="server" TitleAlign="Center" Title="上裝尺碼">
                            <TopBar>
                                <ext:Toolbar runat="server">
                                    <Items>
                                        <ext:Button ID="Button1" runat="server" Text="查询" OnDirectClick="BtnQureyUser" UI="Info"
                                            Icon="Find">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="加载中...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                            <Store>
                                <ext:Store ID="Store1" runat="server" PageSize="3000" OnReadData="RefreshDataSet"
                                    OnSubmitData="Store1_Submit">
                                    <Model>
                                        <ext:Model ID="Model2" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="大区" ServerMapping="bigarea" Type="String" />
                                                <ext:ModelField Name="省份" ServerMapping="areaname" Type="String" />
                                                <ext:ModelField Name="分类" ServerMapping="typename" Type="String" />
                                                <ext:ModelField Name="货品简称" ServerMapping="matshortname" Type="String" />
                                                <ext:ModelField Name="项目" ServerMapping="ItemName" Type="String" />
                                                <ext:ModelField Name="值" ServerMapping="getvalue" Type="String" />
                                                <ext:ModelField Name="l" ServerMapping="l" Type="String" />
                                                <ext:ModelField Name="m" ServerMapping="m" Type="String" />
                                                <ext:ModelField Name="xl" ServerMapping="xl" Type="String" />
                                                <ext:ModelField Name="xxl" ServerMapping="xxl" Type="String" />
                                                <ext:ModelField Name="3xl" ServerMapping="3xl" Type="String" />
                                                <ext:ModelField Name="total" ServerMapping="total" Type="String" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel>
                                <Columns>
                                    <ext:Column ID="Column11" runat="server" Text="大区" DataIndex="大区" />
                                    <ext:Column ID="Column12" runat="server" Text="省份" DataIndex="省份" />
                                    <ext:Column ID="Column1" runat="server" Text="分类" DataIndex="分类" />
                                    <ext:Column ID="Column2" runat="server" Text="货品简称" DataIndex="货品简称" />
                                    <ext:Column ID="Column10" runat="server" Text="项目" DataIndex="项目" />
                                    <ext:Column ID="Column3" runat="server" Text="值" DataIndex="值" />
                                    <ext:Column ID="Column14" runat="server" Text="上装尺码">
                                        <Columns>
                                            <ext:Column ID="Column16" runat="server" Text="m" DataIndex="m" Width="80" />
                                            <ext:Column ID="Column15" runat="server" Text="l" DataIndex="l" Width="80" />
                                            <ext:Column ID="Column17" runat="server" Text="xl" DataIndex="xl" Width="80" />
                                            <ext:Column ID="Column18" runat="server" Text="xxl" DataIndex="xxl" Width="80" />
                                            <ext:Column ID="Column19" runat="server" Text="3xl" DataIndex="3xl" Width="80" />
                                        </Columns>
                                    </ext:Column>
                                    <ext:Column ID="Column26" runat="server" Text="总计" DataIndex="total" />
                                </Columns>
                            </ColumnModel>
                            <View>
                                <ext:GridView>
                                    <GetRowClass Fn="getRowClass">
                                    </GetRowClass>
                                </ext:GridView>
                            </View>
                            <Features>
                                <ext:Summary ID="Summary1" runat="server">
                                </ext:Summary>
                            </Features>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                            </SelectionModel>
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                                    <Items>
                                        <ext:Label ID="Label2" runat="server" Text="每页显示:" />
                                        <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                                        <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                            <Items>
                                                <ext:ListItem Text="1000" />
                                                <ext:ListItem Text="2500" />
                                                <ext:ListItem Text="3000" />
                                                <ext:ListItem Text="3500" />
                                            </Items>
                                            <SelectedItems>
                                                <ext:ListItem Value="3000" />
                                            </SelectedItems>
                                            <Listeners>
                                                <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                            </Listeners>
                                        </ext:ComboBox>
                                        <ext:Button ID="Button10" runat="server" Text="导出EXCEL" OnDirectClick="BtnOutExcel"
                                            UI="Info" Icon="PageExcel">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="正在生成下载文件...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Label ID="Label3" runat="server" StyleSpec="color:red;" Text="提示：请使用分批导出功能！">
                                        </ext:Label>
                                    </Items>
                                    <Plugins>
                                        <ext:ProgressBarPager ID="ProgressBarPager1" runat="server" />
                                    </Plugins>
                                </ext:PagingToolbar>
                            </BottomBar>
                            <Listeners>
                                <AfterLayout Handler="#{ToolbarDroppable1}.addDDGroup(this.child('headercontainer').reorderer.dragZone.ddGroup); doSort();"
                                    Single="true" />
                            </Listeners>
                        </ext:GridPanel>
                        <ext:GridPanel ID="GridPanel2" runat="server" TitleAlign="Center" Title="下裝尺碼">
                            <TopBar>
                                <ext:Toolbar ID="Toolbar2" runat="server">
                                    <Items>
                                        <ext:Button ID="Button8" runat="server" Text="查询" OnDirectClick="BtnQureyUser2" UI="Info"
                                            Icon="Find">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="加载中...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                            <Store>
                                <ext:Store ID="Store6" runat="server" PageSize="3000" OnReadData="RefreshDataSet"
                                    OnSubmitData="Store1_Submit">
                                    <Model>
                                        <ext:Model ID="Model1" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="大区" ServerMapping="bigarea" Type="String" />
                                                <ext:ModelField Name="省份" ServerMapping="areaname" Type="String" />
                                                <ext:ModelField Name="分类" ServerMapping="typename" Type="String" />
                                                <ext:ModelField Name="货品简称" ServerMapping="matshortname" Type="String" />
                                                <ext:ModelField Name="项目" ServerMapping="ItemName" Type="String" />
                                                <ext:ModelField Name="值" ServerMapping="getvalue" Type="String" />
                                                <ext:ModelField Name="k_28" ServerMapping="k_28" Type="String" />
                                                <ext:ModelField Name="k_29" ServerMapping="k_29" Type="String" />
                                                <ext:ModelField Name="k_30" ServerMapping="k_30" Type="String" />
                                                <ext:ModelField Name="k_31" ServerMapping="k_31" Type="String" />
                                                <ext:ModelField Name="k_32" ServerMapping="k_32" Type="String" />
                                                <ext:ModelField Name="k_33" ServerMapping="k_33" Type="String" />
                                                <ext:ModelField Name="k_34" ServerMapping="k_34" Type="String" />
                                                <ext:ModelField Name="k_36" ServerMapping="k_36" Type="String" />
                                                <ext:ModelField Name="k_38" ServerMapping="k_38" Type="String" />
                                                <ext:ModelField Name="k_m" ServerMapping="k_m" Type="String" />
                                                <ext:ModelField Name="k_l" ServerMapping="k_l" Type="String" />
                                                <ext:ModelField Name="k_xl" ServerMapping="k_xl" Type="String" />
                                                <ext:ModelField Name="k_xxl" ServerMapping="k_xxl" Type="String" />
                                                <ext:ModelField Name="total" ServerMapping="total" Type="String" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel>
                                <Columns>
                                    <ext:Column ID="Column13" runat="server" Text="大区" DataIndex="大区" />
                                    <ext:Column ID="Column20" runat="server" Text="省份" DataIndex="省份" />
                                    <ext:Column ID="Column27" runat="server" Text="分类" DataIndex="分类" />
                                    <ext:Column ID="Column28" runat="server" Text="货品简称" DataIndex="货品简称" />
                                    <ext:Column ID="Column9" runat="server" Text="项目" DataIndex="项目" />
                                    <ext:Column ID="Column29" runat="server" Text="值" DataIndex="值" />
                                    <ext:Column ID="Column30" runat="server" Text="下装尺码">
                                        <Columns>
                                            <ext:Column ID="Column31" runat="server" Text="28" DataIndex="k_28" Width="60" />
                                            <ext:Column ID="Column32" runat="server" Text="29" DataIndex="k_29" Width="60" />
                                            <ext:Column ID="Column33" runat="server" Text="30" DataIndex="k_30" Width="60" />
                                            <ext:Column ID="Column34" runat="server" Text="31" DataIndex="k_31" Width="60" />
                                            <ext:Column ID="Column35" runat="server" Text="32" DataIndex="k_32" Width="60" />
                                            <ext:Column ID="Column36" runat="server" Text="33" DataIndex="k_33" Width="60" />
                                            <ext:Column ID="Column37" runat="server" Text="34" DataIndex="k_34" Width="60" />
                                            <ext:Column ID="Column38" runat="server" Text="36" DataIndex="k_36" Width="60" />
                                            <ext:Column ID="Column39" runat="server" Text="38" DataIndex="k_38" Width="60" />
                                            <ext:Column ID="Column4" runat="server" Text="m" DataIndex="k_m" Width="60" />
                                            <ext:Column ID="Column5" runat="server" Text="l" DataIndex="k_l" Width="60" />
                                            <ext:Column ID="Column6" runat="server" Text="xl" DataIndex="k_xl" Width="60" />
                                            <ext:Column ID="Column7" runat="server" Text="xxl" DataIndex="k_xxl" Width="60" />
                                        </Columns>
                                    </ext:Column>
                                    <ext:Column ID="Column52" runat="server" Text="总计" DataIndex="total" />
                                </Columns>
                            </ColumnModel>
                            <View>
                                <ext:GridView>
                                    <GetRowClass Fn="getRowClass">
                                    </GetRowClass>
                                </ext:GridView>
                            </View>
                            <Features>
                                <ext:Summary ID="Summary2" runat="server">
                                </ext:Summary>
                            </Features>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" />
                            </SelectionModel>
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar2" runat="server">
                                    <Items>
                                        <ext:Label ID="Label4" runat="server" Text="每页显示:" />
                                        <ext:ToolbarSpacer ID="ToolbarSpacer2" runat="server" Width="10" />
                                        <ext:ComboBox ID="ComboBox2" runat="server" Width="80">
                                            <Items>
                                                <ext:ListItem Text="1000" />
                                                <ext:ListItem Text="2500" />
                                                <ext:ListItem Text="3000" />
                                                <ext:ListItem Text="3500" />
                                            </Items>
                                            <SelectedItems>
                                                <ext:ListItem Value="3000" />
                                            </SelectedItems>
                                            <Listeners>
                                                <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                            </Listeners>
                                        </ext:ComboBox>
                                        <ext:Button ID="Button2" runat="server" Text="导出EXCEL" OnDirectClick="BtnOutExcel2"
                                            UI="Info" Icon="PageExcel">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="正在生成下载文件...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Label ID="Label5" runat="server" StyleSpec="color:red;" Text="提示：请使用分批导出功能！">
                                        </ext:Label>
                                    </Items>
                                    <Plugins>
                                        <ext:ProgressBarPager ID="ProgressBarPager2" runat="server" />
                                    </Plugins>
                                </ext:PagingToolbar>
                            </BottomBar>
                            <Listeners>
                                <AfterLayout Handler="#{ToolbarDroppable1}.addDDGroup(this.child('headercontainer').reorderer.dragZone.ddGroup); doSort();"
                                    Single="true" />
                            </Listeners>
                        </ext:GridPanel>
                        <ext:GridPanel ID="GridPanel3" runat="server" TitleAlign="Center" Title="鞋尺碼">
                            <TopBar>
                                <ext:Toolbar ID="Toolbar4" runat="server">
                                    <Items>
                                        <ext:Button ID="Button9" runat="server" Text="查询" OnDirectClick="BtnQureyUser3" UI="Info"
                                            Icon="Find">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="加载中...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                            <Store>
                                <ext:Store ID="Store7" runat="server" PageSize="3000" OnReadData="RefreshDataSet"
                                    OnSubmitData="Store1_Submit">
                                    <Model>
                                        <ext:Model ID="Model4" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="大区" ServerMapping="bigarea" Type="String" />
                                                <ext:ModelField Name="省份" ServerMapping="areaname" Type="String" />
                                                <ext:ModelField Name="分类" ServerMapping="typename" Type="String" />
                                                <ext:ModelField Name="货品简称" ServerMapping="matshortname" Type="String" />
                                                <ext:ModelField Name="项目" ServerMapping="ItemName" Type="String" />
                                                <ext:ModelField Name="值" ServerMapping="getvalue" Type="String" />
                                                <ext:ModelField Name="x_39" ServerMapping="x_39" Type="String" />
                                                <ext:ModelField Name="x_40" ServerMapping="x_40" Type="String" />
                                                <ext:ModelField Name="x_41" ServerMapping="x_39" Type="String" />
                                                <ext:ModelField Name="x_42" ServerMapping="x_41" Type="String" />
                                                <ext:ModelField Name="x_43" ServerMapping="x_43" Type="String" />
                                                <ext:ModelField Name="total" ServerMapping="total" Type="String" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel>
                                <Columns>
                                    <ext:Column ID="Column21" runat="server" Text="大区" DataIndex="大区" />
                                    <ext:Column ID="Column22" runat="server" Text="省份" DataIndex="省份" />
                                    <ext:Column ID="Column53" runat="server" Text="分类" DataIndex="分类" />
                                    <ext:Column ID="Column54" runat="server" Text="货品简称" DataIndex="货品简称" />
                                    <ext:Column ID="Column8" runat="server" Text="项目" DataIndex="项目" />
                                    <ext:Column ID="Column55" runat="server" Text="值" DataIndex="值" />
                                    <ext:Column ID="Column72" runat="server" Text="鞋尺码">
                                        <Columns>
                                            <ext:Column ID="Column73" runat="server" Text="39" DataIndex="x_39" Width="80" />
                                            <ext:Column ID="Column74" runat="server" Text="40" DataIndex="x_40" Width="80" />
                                            <ext:Column ID="Column75" runat="server" Text="41" DataIndex="x_41" Width="80" />
                                            <ext:Column ID="Column76" runat="server" Text="42" DataIndex="x_42" Width="80" />
                                            <ext:Column ID="Column77" runat="server" Text="43" DataIndex="x_43" Width="80" />
                                        </Columns>
                                    </ext:Column>
                                    <ext:Column ID="Column78" runat="server" Text="总计" DataIndex="total" />
                                </Columns>
                            </ColumnModel>
                            <View>
                                <ext:GridView>
                                    <GetRowClass Fn="getRowClass">
                                    </GetRowClass>
                                </ext:GridView>
                            </View>
                            <Features>
                                <ext:Summary ID="Summary3" runat="server">
                                </ext:Summary>
                            </Features>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel3" runat="server" />
                            </SelectionModel>
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar3" runat="server">
                                    <Items>
                                        <ext:Label ID="Label6" runat="server" Text="每页显示:" />
                                        <ext:ToolbarSpacer ID="ToolbarSpacer3" runat="server" Width="10" />
                                        <ext:ComboBox ID="ComboBox3" runat="server" Width="80">
                                            <Items>
                                                <ext:ListItem Text="1000" />
                                                <ext:ListItem Text="2500" />
                                                <ext:ListItem Text="3000" />
                                                <ext:ListItem Text="3500" />
                                            </Items>
                                            <SelectedItems>
                                                <ext:ListItem Value="3000" />
                                            </SelectedItems>
                                            <Listeners>
                                                <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                            </Listeners>
                                        </ext:ComboBox>
                                        <ext:Button ID="Button3" runat="server" Text="导出EXCEL" OnDirectClick="BtnOutExcel3"
                                            UI="Info" Icon="PageExcel">
                                            <DirectEvents>
                                                <Click Timeout="300000">
                                                    <EventMask ShowMask="true" Msg="正在生成下载文件...">
                                                    </EventMask>
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Label ID="Label7" runat="server" StyleSpec="color:red;" Text="提示：请使用分批导出功能！">
                                        </ext:Label>
                                    </Items>
                                    <Plugins>
                                        <ext:ProgressBarPager ID="ProgressBarPager3" runat="server" />
                                    </Plugins>
                                </ext:PagingToolbar>
                            </BottomBar>
                            <Listeners>
                                <AfterLayout Handler="#{ToolbarDroppable1}.addDDGroup(this.child('headercontainer').reorderer.dragZone.ddGroup); doSort();"
                                    Single="true" />
                            </Listeners>
                        </ext:GridPanel>
                    </Items>
                </ext:TabPanel>
            </Items>
        </ext:Viewport>
    </div>
    <div id="my-shop" style="display: none;">
        <div style="padding: 3px;">
            <label runat="server" id="select_shop" style="display: none;">
            </label>
            已选择店铺：
            <textarea id="txt_shop" style="width: 750px;" rows="2"></textarea>
        </div>
        <div>
            店铺：<input id="txt_shopname" type="text" style="width: 160px;" placeholder="输入店铺名称" />
            <input id="btn_findshop" type="button" value="查找" />
            <input id="chkclear" type="button" value="清除" />
        </div>
        <div id="shop-list" style="position: relative; height: 350px; overflow: auto;">
        </div>
    </div>
    </form>
</body>
</html>
